using JamesFan.FetchAreaCodes;
using JamesFan.FetchAreaCodes.Cli;
using Viyi.Util.Extensions;

var options = OptionsManager.Parse(args);

using HttpClient httpClient = new();
httpClient.Timeout = TimeSpan.FromSeconds(30);

await new DataWalker(httpClient, "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2021/index.html")
    .Also(options.ConfigureWalker)
    .Walk();
